﻿using System;
using System.Collections.Generic;
using System.Text;
using IDotNet.MapLibs.BingMap;
using IDotNet.MapLibs.BMap;
using IDotNet.MapLibs.Model;

namespace IDotNet.MapLibs
{
    public class GeocodingFactory
    {
        public static IGeocoding GetGeocoding(MapType type)
        {
            switch (type)
            {
                case MapType.BMap:
                    return new BMapGeocoding();
                case MapType.BingMap:
                    return new BingMapGeocoding();
                default:
                    throw new ArgumentOutOfRangeException("type");
            }
        }
    }
}
